package com.wang.test.demo.entity;

import lombok.Data;

import javax.validation.constraints.Email;
import java.util.List;

/**
 * @author wangzhenjun
 * @date 2022/2/28 10:28
 */
@Data
public class NodeVO {
    @Email
    private String id;
    private String name;
    private String pid;
    private List<NodeVO> children;

    public NodeVO(String id, String name, String pid) {
        this.id = id;
        this.name = name;
        this.pid = pid;
    }
}
